//
//  ExamineItem.m
//  gdemm
//
//  Created by 乔明超 on 16/10/26.
//  Copyright © 2016年 Goldencis. All rights reserved.
//

#import "ExamineItem.h"

@implementation ExamineItem
- (void)reportExamineInfo:(NSString *)info{
    if (self.mActionListener != nil) {
        dispatch_async(dispatch_get_main_queue(), ^{
            [self.mActionListener onExamineInfo:info];
        });
        
    }
}

- (BOOL)examine{
    if (self.mActionListener != nil) {
        dispatch_async(dispatch_get_main_queue(), ^{
            [self.mActionListener onExamineItemChange:[self getExamineDesc]];
        });
        
    }
    return [self run];
}

//以下方法实现为了消除警告
- (NSInteger)getExamineContentCount{
    return 0;
}
- (NSString *)getExamineDesc{
    return nil;
}
- (NSInteger)getRepairType{
    return 0;
}
- (BOOL)run{
    return YES;
}
- (id)details{
    return nil;
}
- (BOOL)repair{
    return NO;
}
- (BOOL)returnValue{
    return NO;
}
- (void)reset{
}

@end
